package com.csi.mapper;

import com.csi.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    User findByName(String username);

    User login(String username, String password);

    int add(User user);

    @Select("select id,user_head,user_nickname,username,user_self from user where id = #{userId}")
    User getUser(long userId);
}
